/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main.Events.Entity;

import Scenery.Thing.Things.TreeEntity;
import com.jme3.bullet.control.RigidBodyControl;
import com.jme3.scene.Node;
import main.Events.Event;
import main.Main;

/**
 *
 * @author usuario
 */
public class TreeFallEvent extends Event {
    
    private Node tree;
    int count = 0;
    
    public TreeFallEvent(Node tree) {
        this.tree = tree;
    }

    @Override
    public boolean process() {
        count++;
        if(count < 75) {
            tree.rotate(0.02f, 0, 0);
            return false;
        } else 
        { 
           // tree.updateModelBound();
           // tree.updateGeometricState();
           // tree.updateLogicalState(Main.globalTpf);
            return true;
            
        
        }
    }
    
}
